﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="khanhdaiTH.ascx.cs" Inherits="khanhdaiTH" %>

<% var list = DsVeDaDat();%>
<div class="khanDaiTH">
    <div class="alert alert-info" style="text-align: center;">
        Khán đài Thượng Hạng
    </div>
<table cellpadding="0" cellspacing="0">
<% for (int i = 0; i < 8; i++)
    { %>
    <tr>
        <td class="type"><%=Convert.ToChar(i+65) %></td>
        <% for (int j = 0; j < 40; j++)
            { %>
            <td>
            <span class="gheSelected" id='<%="TH"+Convert.ToChar(i+65)+(j+1).ToString() %>'><%=j+1 %></span>
            <% if(Array.Find(list, c => c.Trim() == "TH"+Convert.ToChar(i+65)+(j+1).ToString()) != null)
               {%>
                <asp:Image ID="Image1" runat="server" 
            ImageUrl="images/ghe/con_trong.png" CssClass="img-polaroid" />
            <% } else { %>
                <asp:Image ID="Image2" runat="server" 
            ImageUrl="images/ghe/khu_vuc_khac.png" CssClass="img-polaroid" />
            <% } %>
            </td>
        <% } %>
    </tr>
<% } %>
</table>
</div>